#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
void main()
{
	int m, n, i, prime;
	i = 0;
	for (m = 2;m<=200; m++)
	{
		prime = 1;
		for (n = 2; n < m; n++)
		{
			if (m % n == 0)
				prime = 0;
		}
		if (prime)
		{
			printf("\t%d", m);
			i++;
			if (i % 5 == 0)
				printf("\n");
		}
	}
	if (i % 5 != 0)
		printf("\n");
}